﻿@model ForecastDataTableModel
@using Nop.Web.Models.WindAlert;
@{
    int i = 0;
}
    @if (Model.TableRows.Count > 0)
    {   
        <table style="border-spacing: 0; width: 100%;" class=""> 
            <tr>
                <td class="table-title">שם</td>
                <td class="table-title">זמן</td>
                <td class="table-title">גובה גל</td>
                <td class="table-title">כוון גל</td>
                <td class="table-title">מחזור</td>
                <td class="table-title">מהירות רוח</td>
                <td class="table-title">כוון רוח</td>
            </tr>
        @foreach (ForecastDataRowModel row in Model.TableRows)
        {
            <tr class="@(i % 2 == 0 ? "even" : "odd")">
                <td class="station-name">@row.SpotName</td>
                <td>@row.ForecastTime.ToShortTimeString()</td>
                <td>@row.Hieght</td>
                <td>@row.WaveDirection</td>
                <td>@row.Period</td>
                <td>@row.WindSpeed</td>
                <td>
                    <img src=@("../../WindAlert/Images/DirImages/" + row.WindDirectionLetters + ".png") style=" width:22px; height:22px;" />
                    <br />
                    @row.WindDirectionLetters.ToUpper()
                </td>
            </tr>
            i++;
         }
         </table>  
        }
